<%= javascript_tag :defer => 'defer' do -%>

<% end -%>

<body><h1>Task</h1>


<legend style="border: inset">
  <table cellspacing="5" cellpadding="5">
    <tr>
      <td>Task Name: <h4><%= @task.task_name %> </h4></td>
      <td width="50">

      </td>
      <td>

        <table bgcolor="#c0c0c0" align="center" border="0" width="140" cellspacing="0">
          <tr>
            <td align="center">
              <font face="verdana, arial, helvetica, sans-serif" size="2">
                <b>DAILY TASK TIMER</b></font>
            </td>
          </tr>
          <tr>
            <td align="center">

              <%= form_tag({:action=>"pause_save",:id=>@task.id}, :remote=>true,:name=>"clock") %>

              <%= text_field_tag "time",'00:00:00', :name=>"stwa"%>
              <%= button_to_function "Start",:onclick=>'stopwatch(this.value)', :name =>"theButton"%>
              <%= submit_tag "Pause",:onclick=>'stopwatch1(this.value)',:name =>"theButton1",:disabled=>true %>
              <%= button_to_function "Done",:onclick=>'stopwatch1(this.value)', :name =>"theButton2" %>
              <%= button_to_function "Reset",:onclick=>'resetIt();' %>




            </td>
          </tr>
        </table>

      </td>

    </tr>
    <tr>
      <td>Current Status:<h4> <%= @state%></h4></td>

    </tr>

    <tr>
      <td>Time spent:<h4> <%= @duration%></h4></td>

    </tr>
  </table>
</legend>




<br/><br/>
<%= link_to 'Back', {:action => 'list'} %>

